package sn.gandal.agriculture.agrimobile.j2me.httpServices;


/**
 *
 * @author dysow
 */
public class HttpServicesImpl implements IHttpServices
{

    public String getURL()
    {
	//TODO : get address
	String url = "";
	return url;
    }

    public void receptionDonnes() throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
//        try
//	{
//	    DonneeSynchroniser donneeSynchroniser = new DonneeSynchroniser(inter);
//	    donneeSynchroniser.setReceptionAction();
//	    Thread thread = new Thread(donneeSynchroniser);
//	    thread.start();
//	    inter.setThread(thread);
//	}
//	catch (Exception e)
//	{
//	    throw e;
//	}
    }

    public void envoieDonnes() throws Exception {
        throw new UnsupportedOperationException("Not supported yet.");
        //	try
//	{
//	    DonneeSynchroniser donneeSynchroniser = new DonneeSynchroniser(inter);
//	    donneeSynchroniser.setEnvoieAction();
//	    Thread thread = new Thread(donneeSynchroniser);
//	    thread.start();
//	    inter.setThread(thread);
//	}
//	catch (Exception e)
//	{
//	    throw e;
//	}
    }

    public void testerConnexion() {
        throw new UnsupportedOperationException("Not supported yet.");
//	ConnectionTester connectionTester = new ConnectionTester(progressForm, display);
//	Thread thread = new Thread(connectionTester);
//	thread.start();
//	progressForm.setThread(thread);
//    }
    }

}
